It was later reused for such purposes as housing , workshops , quarters for a religious order , a fortress , a quarry , and a MISC@1 shrine .

It was then used as housing , workshops , a MISC@1 shrine , and as a supply of building stones .
