During the last four years of his reign, Ptolemy XII (who died of natural causes) designated Cleopatra VII and Ptolemy XIII as his heirs, oversaw major construction projects such as the completion of the Temple of Edfu and establishment of the Dendera Temple, and stabilized an economy largely reliant on trade with East Africa and India.[108][107][105][note 22] A copy of his will was sent to Pompey to be kept in Rome, and the original was held in Alexandria for safekeeping.[107][109][110] According to an inscription in the Temple of Hathor at Dendera, Cleopatra was made a regent of Ptolemy XII on 31 May 52 BC.[111][112][113][note 23]