Some updates on bit handling, WIP.