Keep track of all the little codes
Code to write out XML files for reconstruction