Automagic Button State System.