Using a SimpleAgent to maintain state.