Added color changing for different states of jobs.