Customized the ESGraph and ESGraph Average to run from commandline