GitHub #82 - Add length check on device type