Prescale and oFileName can now be set from xml file