Added Agent functionality.