Added a working version of the statistics window.