Close #2 PR: using bitwise operators.