A worker module that manages state.