Add savemode into echo.groovy