Implements state management for job