What is an accelerometer and why are they needed?