Add state manager