Improved implementation of Stats, GUI logic