Stats and framecount fixes