Big ass commit that implements the basics.