Implemented/extended the permission-denied case, changed the resubmit_jobs functionality.