Xml basically working, with bugs.