Change Even/Odd to use bit masks