Added add_device api call