Accelerometer is now working properly