Added error check for totalPointsNumber()