Setting up to sync with camera

Crashes after it runs for a few seconds...