Added accelerometer controls.