anchor.diff:  	var/dat = "<HTML><BODY><TT><B>Door [src.id] controls</B>"
   	user.machine = src
   	var/d2
  -	if (!src.timing)
  -		update_display("SET","TIME")
   	if (src.timing)
  -		d2 = text("<A href='?src=\ref[];time=0'>Stop Timer</A><br>", src)
  -	else
  -		d2 = text("<A href='?src=\ref[];time=1'>Set Timer</A><br>", src)
  -	var/second = src.time % 60
  -	var/minute = (src.time - second) / 60
  +		d2 = text("<A href='?src=\ref[];timing=0'>Stop Timer and open doors</A><br>", src)
  +	else
  +		d2 = text("<A href='?src=\ref[];timing=1'>Activate Timer and close doors</A><br>", src)
  +	var/timeleft = timeleft()
  +	var/second = round(timeleft % 60)
  +	var/minute = round((timeleft - second) / 60)
   	dat += text("<br><HR>\nTimer System: [d2]\nTime Left: [(minute ? text("[minute]:") : null)][second] <A href='?src=\ref[src];tp=-60'>-</A> <A href='?src=\ref[src];tp=-1'>-</A> <A href='?src=\ref[src];tp=1'>+</A> <A href='?src=\ref[src];tp=60'>+</A>")
   	if (targetflashers.len)
   		dat += "<BR>"
   	for(var/obj/machinery/flasher/F in targetflashers)
  -		if(F.last_flash && world.time < F.last_flash + 150)
  +		if(F.last_flash && (F.last_flash + 150) > world.time)
   			dat += text("<BR><A href='?src=\ref[];fc=1'>Flash Cell (Charging)</A>", src)
   		else
   			dat += text("<BR><A href='?src=\ref[];fc=1'>Flash Cell</A>", src)
  
positive.code: 	if (stat & (NOPOWER|BROKEN))
  		return
  	if (src.timing)
  		if (src.time > 0)
  			src.time--
  		else
  			src.opendoor() // open doors, reset timer, clear status screen
  			src.time = 0
  			src.timing = 0
  		src.updateDialog()
  		src.update_icon()
  	else
  		if(targetdoor && targetdoor.density) //door searching cicle moved to New()
  			spawn( 0 )
  				targetdoor.open()
  	return
  
  // has the door power sitatuation changed, if so update icon.
  /obj/machinery/door_timer/power_change()
  	update_icon()
  
  // open/closedoor checks if door_timer has power, if so it checks if the
  
negative.code: 
  //Function for using door_timer dialog input, checks if user has permission
  // href_list to
  //  "timing" turns on timer
  //  "tp" value to modify timer
  //  "fc" activates flasher
  // Also updates dialog window and timer icon
  /obj/machinery/door_timer/Topic(href, href_list)
  	if(..())
  		return
  	if(!src.allowed(usr))
  		return
  
  	usr.machine = src
  	if (href_list["timing"])
  		src.timing = text2num(href_list["timing"])
  	else
  		if (href_list["tp"])  //adjust timer, close door if not already closed
  			var/tp = text2num(href_list["tp"])
  			var/timeleft = timeleft()
  			timeleft += tp
  			timeleft = min(max(round(timeleft), 0), 600)
  			timeset(timeleft)
  			//src.timing = 1
  			//src.closedoor()
  		if (href_list["fc"])
  			for (var/obj/machinery/flasher/F in targetflashers)
  				F.flash()
  	src.add_fingerprint(usr)
  	src.updateUsrDialog()
  	src.update_icon()
  	if (src.timing)
  		src.closedoor()
  	else
  		src.opendoor()
  	return
  
  