Implemented autoregistration.