Added a bunch of non-complete code to start a lot of the functions