Wrote the majority of the main function