Implement switchOn() and switchOff().