Update agent.java