Trying to get the submission code to work