Add support for bits.
Merge pull request #130 from martindale/bits

Add support for bits.