Added a check to see if a job id is running