Added statistics logger