Functions for submission.