Check network before ack
Fix crash
Pebble code cleanup