More attempts to get accelerometer to work.