Update Agent.java