The gatekeeper in the Middle Ages