Added accelerometer checking code to flag changes in the accel for more that 1 sec