Better iOS and Pebble code