Improved bit-wise operations and tests' readability.