Added analysis variables and output xml