Handling multiple devices with same reg_id