Fixed some issues with Statlogger (still buggy and not working)