Better accelerometer check. (again)