By the late 19th century, the primitive church consisted of three chapels and a baptistery and was connected to the south nave of the principal church by the first chapel.[9] The church was periodically altered and restored in response to plundering. This reconstruction included the addition of a barrier wall during the reign of caliph al-Hakim.[9]