In medieval times hermits were also found within or near cities where they might earn a living as a gate keeper or ferryman. In the 10th century, a rule for hermits living in a monastic community was written by Grimlaicus. In the 11th century, the life of the hermit gained recognition as a legitimate independent pathway to salvation. Many hermits in that century and the next came to be regarded as saints. From the Middle Ages and down to modern times, eremitic monasticism has also been practiced within the context of religious institutes in the Christian West.