Final functions for submission