Added pebble connection code