StatLogger V2: Kinda messed up, not sure if it writes to files
correctly.