Consider renaming this function. I mean, if its called SetRaisedState(), i'd expect it to do just that -- set raised state. Clearly it does a bunch of heavy lifting (pun intended ;) )