Some of the caves were dug so as to give access to the outside, and used to host pigeon-houses, to provide food for the inhabitants during sieges. A clever irrigation system allowed regular flushing of the pigeon-holes to avoid the proliferation of vermin.