Added accelerometer switch.