Completly reimplemented the XML system and added MD5 checks