Ian's dumb_agent and run code