Updated tempBug to use agents.