Accelerometer movement working