Switched template