Added support to pass in an xml script file.