Added support for agent actions and attributes; renamed some Agent methods