Added opacity control to states.