Added class to load XML vars