anchor.diff:  	)
   	return data
   
  -
  +///Checks for nearby recharge ports to link to
   /obj/machinery/computer/mech_bay_power_console/proc/reconnect()
   	if(recharge_port)
   		return
   	recharge_port = locate(/obj/machinery/mech_bay_recharge_port) in range(1)
  -	if(!recharge_port )
  -		for(var/D in GLOB.cardinals)
  -			var/turf/A = get_step(src, D)
  -			A = get_step(A, D)
  -			recharge_port = locate(/obj/machinery/mech_bay_recharge_port) in A
  +	if(!recharge_port)
  +		for(var/direction in GLOB.cardinals)
  +			var/turf/target = get_step(src, direction)
  +			target = get_step(target, direction)
  +			recharge_port = locate(/obj/machinery/mech_bay_recharge_port) in target
   			if(recharge_port)
   				break
  -	if(recharge_port)
  -		if(!recharge_port.recharge_console)
  -			recharge_port.recharge_console = src
  -		else
  -			recharge_port = null
  +	if(!recharge_port)
  +		return
  +	if(!recharge_port.recharge_console)
  +		recharge_port.recharge_console = src
  +	else
  +		recharge_port = null
   
   /obj/machinery/computer/mech_bay_power_console/update_overlays()
   	. = ..()
  
positive.code: 	if(recharging_mech.cell.charge >= recharging_mech.cell.maxcharge)
  		return
  	. += "recharge_comp_on"
  
  /obj/machinery/computer/mech_bay_power_console/Initialize(mapload)
  	. = ..()
  	reconnect()
  
  /obj/machinery/computer/mech_bay_power_console/Destroy()
  	if (recharge_port && recharge_port.recharge_console == src)
  		recharge_port.recharge_console = null
  	return ..()
  
negative.code: 	icon_keyboard = "rd_key"
  	circuit = /obj/item/circuitboard/computer/mech_bay_power_console
  	light_color = LIGHT_COLOR_PINK
  	///Ref to charge port fwe are viewing data for, cyclical reference
  	var/obj/machinery/mech_bay_recharge_port/recharge_port
  
  /obj/machinery/computer/mech_bay_power_console/Initialize(mapload)
  	. = ..()
  	reconnect()
  
  /obj/machinery/computer/mech_bay_power_console/Destroy()
  	if (recharge_port?.recharge_console == src)
  		recharge_port.recharge_console = null
  	return ..()
  
  /obj/machinery/computer/mech_bay_power_console/ui_interact(mob/user, datum/tgui/ui)
  	ui = SStgui.try_update_ui(user, src, ui)
  