Added accelerometer script