anchor.diff:  		if(user)
   			user << "<span class='danger'>[src] buzzes and beeps.</span>"
   
  -/mob/living/simple_animal/bot/cleanbot/process_scan(obj/effect/decal/cleanable/D)
  +/mob/living/simple_animal/bot/cleanbot/process_scan(atom/A)
   	for(var/T in target_types)
  -		if(istype(D, T))
  -			return D
  +		if(istype(A, T))
  +			return A
   
   /mob/living/simple_animal/bot/cleanbot/handle_automated_action()
   	if(!..())
  
positive.code: 	model = "Cleanbot"
  	bot_core_type = /obj/machinery/bot_core/cleanbot
  	window_id = "autoclean"
  	window_name = "Automatic Station Cleaner v1.1"
  	pass_flags = PASSMOB
  
  	var/blood = 1
  	var/list/target_types = list()
  	var/obj/effect/decal/cleanable/target
  	var/max_targets = 50 //Maximum number of targets a cleanbot can ignore.
  
negative.code: 	dat += hack(user)
  	dat += showpai(user)
  	dat += text({"
  Status: <A href='?src=\ref[src];power=1'>[on ? "On" : "Off"]</A><BR>
  Behaviour controls are [locked ? "locked" : "unlocked"]<BR>
  Maintenance panel panel is [open ? "opened" : "closed"]"})
  	if(!locked || issilicon(user)|| IsAdminGhost(user))
  		dat += "<BR>Clean Blood: <A href='?src=\ref[src];operation=blood'>[blood ? "Yes" : "No"]</A>"
  		dat += "<BR>Clean Trash: <A href='?src=\ref[src];operation=trash'>[trash ? "Yes" : "No"]</A>"
  		dat += "<BR>Exterminate Pests: <A href='?src=\ref[src];operation=pests'>[pests ? "Yes" : "No"]</A>"
  		dat += "<BR><BR>Patrol Station: <A href='?src=\ref[src];operation=patrol'>[auto_patrol ? "Yes" : "No"]</A>"
  	return dat
  
  /mob/living/simple_animal/bot/cleanbot/Topic(href, href_list)
  	if(..())
  		return 1
  	if(href_list["operation"])
  		switch(href_list["operation"])
  			if("blood")
  				blood = !blood
  			if("pests")
  				pests = !pests
  			if("trash")
  				trash = !trash
  		get_targets()
  		update_controls()
  