Working on replicated state manager.