Calculation of primary/secondary stats base on level for issue #74