Fixes #23

Bit manipulation is pretty great.