Added assert at the end of the submit