-Added a buttonState to set or get the current state of a button.