Added logging to submit