Several usability improvements to the Agent class.