Add testing flag to allow repeated submission of the same event
Formatting, add TODO list.