Stateful Autonomous Agents