Debugged register and deregister in the main client class.