Adapt for PebbleJS