Separated debug data storage from analysis. The main chunk of the code just dumps some data as it runs, analysis is done separately (still WIP)