Added code for dev register and dev unregister.