In 101, Hadrian was back in Rome; he was elected quaestor, then "quaestor imperatoris Traiani", liaison officer between Emperor and the assembled Senate, to whom he read the Emperor's communiqués and speeches – which he possibly composed on the emperor's behalf. In his role as imperial ghostwriter, Hadrian took the place of the recently deceased Licinius Sura, Trajan's all-powerful friend and kingmaker. His next post was as "ab actis senatus", keeping the Senate's records. During the First Dacian War, Hadrian took the field as a member of Trajan's personal entourage, but was excused from his military post to take office in Rome as Tribune of the Plebs, in 105. After the war, he was probably elected praetor. During the Second Dacian War, Hadrian was in Trajan's personal service again, but was released to serve as legate of Legio I Minervia, then as governor of Lower Pannonia in 107, tasked with "holding back the Sarmatians". Between 107 and 108, Hadrian defeated an invasion of Roman-controlled Banat and Oltenia by the Iazyges. The exact terms of the peace treaty are not known, but it is believed the Romans kept Oltenia in exchange for some form of concession, likely involving a one-time tribute payment. The Iazyges also took possession of Banat around this time, which may have been part of the treaty.