Rewrote first half of bitwise operators.