Lots of bitwise