Accelerometer plugin