Better avg grade computation.