And don't forget the most important function of The Church: to bring everyone the grace that leads to salvation primarily through the Sacraments.
Sanctifying grace, the title to salvation, is peculiarly the grace of those who are united to Christ in the Church: it is the birthright of the children of God. The primary purpose of those actual graces which God bestows upon those outside the Church is to draw them within the fold. Thus, even in the case in which God Saves men apart from the Church, He does so through the Church's graces. They are joined to the Church in spiritual communion, though not in visible and external communion. In the expression of theologians, they belong to the soul of the Church, though not to its body.