Update Agent.php