Added APIs to register devices.