Also, even laity can baptize in emergencies, and as far as marriage goes, the priest or deacon does not confer the sacrament, the couple by their vows confer the sacrament. This is why even a deacon can perform both marriage and baptism, and in ages and places where no priest was available the couples were not required to wait for them to be joined in matrimony. I may be wrong on this and would be open to correction.