How to generate unique codes to identify submission.