Fixed a bug in emergency_control. Appears to be working now..I think.