Accelerometer cleanup