Hi Bill,
I agree with ACETRONICS about the button command, I have a thought about making it easier to follow your code, instead of all caps you might try InputPortBitFlag or Input_Port_Bit_Flag.
Ultimately only you have to look at it, I just thought it might be easier.
JS