anchor.diff:  				I = M.get_idcard()
   
   			if(I && istype(I))
  -				if(src.check_access(I))
  +				if(check_access(I))
   					authenticated = 1
   					auth_id = "[I.registered_name] ([I.assignment])"
   					if((20 in I.access))
   						authenticated = 2
   					playsound(src, 'sound/machines/terminal_on.ogg', 50, 0)
  -				if(src.emagged)
  +				if(emagged)
   					authenticated = 2
   					auth_id = "Unknown"
   					to_chat(M, "<span class='warning'>[src] lets out a quiet alarm as its login is overriden.</span>")
  
positive.code: 			playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
  		if(STATE_MESSAGELIST)
  			dat += "Messages:"
  			for(var/i = 1; i<=src.messagetitle.len; i++)
  				dat += "<BR><A HREF='?src=\ref[src];operation=viewmessage;message-num=[i]'>[src.messagetitle[i]]</A>"
  			playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  		if(STATE_VIEWMESSAGE)
  			if (src.currmsg)
  				dat += "<B>[src.messagetitle[src.currmsg]]</B><BR><BR>[src.messagetext[src.currmsg]]"
  				if (src.authenticated)
  					dat += "<BR><BR>\[ <A HREF='?src=\ref[src];operation=delmessage'>Delete</a> \]"
  			else
  				src.state = STATE_MESSAGELIST
  				src.attack_hand(user)
  				return
  		if(STATE_DELMESSAGE)
  			if (src.currmsg)
  				dat += "Are you sure you want to delete this message? \[ <A HREF='?src=\ref[src];operation=delmessage2'>OK</A> | <A HREF='?src=\ref[src];operation=viewmessage'>Cancel</A> \]"
  			else
  				src.state = STATE_MESSAGELIST
  				src.attack_hand(user)
  				return
  		if(STATE_STATUSDISPLAY)
  			dat += "Set Status Displays<BR>"
  			dat += "\[ <A HREF='?src=\ref[src];operation=setstat;statdisp=blank'>Clear</A> \]<BR>"
  			dat += "\[ <A HREF='?src=\ref[src];operation=setstat;statdisp=shuttle'>Shuttle ETA</A> \]<BR>"
  			dat += "\[ <A HREF='?src=\ref[src];operation=setstat;statdisp=message'>Message</A> \]"
  			dat += "<ul><li> Line 1: <A HREF='?src=\ref[src];operation=setmsg1'>[ stat_msg1 ? stat_msg1 : "(none)"]</A>"
  			dat += "<li> Line 2: <A HREF='?src=\ref[src];operation=setmsg2'>[ stat_msg2 ? stat_msg2 : "(none)"]</A></ul><br>"
  			dat += "\[ Alert: <A HREF='?src=\ref[src];operation=setstat;statdisp=alert;alert=default'>None</A> |"
  			dat += " <A HREF='?src=\ref[src];operation=setstat;statdisp=alert;alert=redalert'>Red Alert</A> |"
  			dat += " <A HREF='?src=\ref[src];operation=setstat;statdisp=alert;alert=lockdown'>Lockdown</A> |"
  			dat += " <A HREF='?src=\ref[src];operation=setstat;statdisp=alert;alert=biohazard'>Biohazard</A> \]<BR><HR>"
  			playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
  		if(STATE_ALERT_LEVEL)
  			dat += "Current alert level: [get_security_level()]<BR>"
  			if(GLOB.security_level == SEC_LEVEL_DELTA)
  				dat += "<font color='red'><b>The self-destruct mechanism is active. Find a way to deactivate the mechanism to lower the alert level or evacuate.</b></font>"
  			else
  				dat += "<A HREF='?src=\ref[src];operation=securitylevel;newalertlevel=[SEC_LEVEL_BLUE]'>Blue</A><BR>"
  				dat += "<A HREF='?src=\ref[src];operation=securitylevel;newalertlevel=[SEC_LEVEL_GREEN]'>Green</A>"
  		if(STATE_CONFIRM_LEVEL)
  			dat += "Current alert level: [get_security_level()]<BR>"
  			dat += "Confirm the change to: [num2seclevel(tmp_alertlevel)]<BR>"
  			dat += "<A HREF='?src=\ref[src];operation=swipeidseclevel'>Swipe ID</A> to confirm change.<BR>"
  		if(STATE_TOGGLE_EMERGENCY)
  			playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
  			if(GLOB.emergency_access == 1)
  				dat += "<b>Emergency Maintenance Access is currently <font color='red'>ENABLED</font></b>"
  				dat += "<BR>Restore maintenance access restrictions? <BR>\[ <A HREF='?src=\ref[src];operation=disableemergency'>OK</A> | <A HREF='?src=\ref[src];operation=viewmessage'>Cancel</A> \]"
  			else
  				dat += "<b>Emergency Maintenance Access is currently <font color='green'>DISABLED</font></b>"
  				dat += "<BR>Lift access restrictions on maintenance and external airlocks? <BR>\[ <A HREF='?src=\ref[src];operation=enableemergency'>OK</A> | <A HREF='?src=\ref[src];operation=viewmessage'>Cancel</A> \]"
  
  		if(STATE_PURCHASE)
  			dat += "Budget: [SSshuttle.points] Credits.<BR>"
  
negative.code: 					if(SEC_LEVEL_BLUE)
  						SSblackbox.inc("alert_comms_blue",1)
  			tmp_alertlevel = 0
  			aistate = STATE_DEFAULT
  		if("ai-changeseclevel")
  			aistate = STATE_ALERT_LEVEL
  		if("ai-emergencyaccess")
  			aistate = STATE_TOGGLE_EMERGENCY
  		if("ai-enableemergency")
  			make_maint_all_access()
  			log_game("[key_name(usr)] enabled emergency maintenance access.")
  			message_admins("[key_name_admin(usr)] enabled emergency maintenance access.")
  			aistate = STATE_DEFAULT
  		if("ai-disableemergency")
  			revoke_maint_all_access()
  			log_game("[key_name(usr)] disabled emergency maintenance access.")
  			message_admins("[key_name_admin(usr)] disabled emergency maintenance access.")
  			aistate = STATE_DEFAULT
  
  	updateUsrDialog()
  
  /obj/machinery/computer/communications/attackby(obj/I, mob/user, params)
  	if(istype(I, /obj/item/card/id))
  