Run final code before submitting.