Update Automate.cpp