Moved statistics logic to "Model"