Add bit stuff and some util classes