Update pebble.cpp