Updating Agent object