Tweaked the GetButtonBit method