How does energy switching work?