Made the defs an external XML file