Added the ability to register devices.