Submitting after making the functions