Third revision - Works. ToDo - Add submission mail logic to downloads as well
 revision