 Complete the following phrase:  Theoktistos is first mentioned in 802, when he held the rank of patrikios and the post of quaestor. From this post he supported the deposition of Empress Irene of Athens ruled 797802 and her replacement by Nikephoros I r. 802811. He remained active in Nikephoros administration, and by the time of the Emperors death in the Battle of Pliska in 811 he had advanced to the rank of magistros. He was among those who agreed to the accession of Nikephoros son Staurakios to the imperial throne. Staurakios, however, had himself been grievously wounded in the battle, and Theoktistos, along with the Domestic of the Schools Stephen and the Patriarch Nikephoros, pushed through his replacement by his brother-inlaw, the kouropalates Michael I Rangabe r. 811813although, if the narrative of Theophanes the Confessor, an admittedly hostile source, is to be believed, the decision was also influenced by the insulting manner in which Staurakios treated the senior officials, Theoktistos included. Throughout his brief reign, Michael Rangabe was completely dependent on the senior officials who had raised him to the throne. In 813, Theoktistos was a member of the group of officials which successfully advocated a war with Bulgaria. Theoktistos accompanied the army, but the campaign ended in a heavy defeat at the 