Using the accelerometer