Added some initial agent functionality.