Bit manipulation tricks.