Bitwise logical operators and cleanup