Attempt to add code to sync accelerometer data. Buggy!