added accelerometer tracking and tried to limit the queuing of the updates