Added accelerometer control with toggle