Smart switches

See this post from @JDRoberts