Modified coregister_auto to work with the GUI and stopped using the temporary function coregister_steven.