Slight modification in the Job State Machine