Adding trace function for POJ submitter