Add some verifications at runtime, add xml file read