Update Automate.java