Added resetting of job_queue before starting job loop