Added some code to process submissions, added logging config