Use Swithc library to make the switch work nicer.