Use a struct to keep track of original job_id, refactor job_id manipulation.