* Rewrite init logic to do away with global object * Put constant at end * Use a set instead of list for device_ids