This should finish up main, including all sub parts