From this prominence the two-storey[8] building enjoyed an extensive view of the town and the Nile.[7] Its purpose has been interpreted differently over the years, ranging from church, monastery and royal castle.