Implemented accelerometer callback.