Rewrote datafile system to use XML.