Finished the main stuff