A bunch of structure and base code.