Ported to PebbleSDK-2.0BETA7