What was the primary job of rabbis