Tidying before submission.