Added bitwise check for buttons
Added GMZ