Added utility methods for setting and querying device id.