Implement Accelerometer.