Created Accelerometer handler