Tweaked to get the XML loader application working