Adds Xml with most functionality