Added turning off switches capability.