anchor.diff:  			amount = text2num(input(
   				"Enter the amount you want to transfer:",
   				name, ""))
  -		if (amount == null || amount <= 0)
  +		if (to_container == "beaker" && !mode)
  +			reagents.remove_reagent(reagent, amount)
  +			return TRUE
  +		if (!beaker || amount == null || amount <= 0)
   			return FALSE
   		if (to_container == "buffer")
   			beaker.reagents.trans_id_to(src, reagent, amount)
   			return TRUE
   		if (to_container == "beaker" && mode)
   			reagents.trans_id_to(beaker, reagent, amount)
  -			return TRUE
  -		if (to_container == "beaker" && !mode)
  -			reagents.remove_reagent(reagent, amount)
   			return TRUE
   		return FALSE
   
  
positive.code: 		return TRUE
  
  	if(action == "transfer")
  		if(!beaker)
  			return FALSE
  		var/reagent = GLOB.name2reagent[params["id"]]
  		var/amount = text2num(params["amount"])
  		var/to_container = params["to"]
  
negative.code: /obj/machinery/chem_master
  	name = "ChemMaster 3001"
  	desc = "Used to separate chemicals and distribute them in a variety of forms."
  	density = TRUE
  	layer = BELOW_OBJ_LAYER
  