Added some more foundation code for the agents