Revise the resubmit method, and replace system.out with logger.