As a ruler, Justinian showed great energy. He was known as "the emperor who never sleeps" on account of his work habits. Nevertheless, he seems to have been amiable and easy to approach. Around 525, he married his mistress, Theodora, in Constantinople. She was by profession an actress and some twenty years his junior. In earlier times, Justinian could not have married her owing to her class, but his uncle, Emperor Justin I, had passed a law lifting restrictions on marriages with ex-actresses. Though the marriage caused a scandal, Theodora would become very influential in the politics of the Empire. Other talented individuals included Tribonian, his legal adviser; Peter the Patrician, the diplomat and long-time head of the palace bureaucracy; Justinian's finance ministers John the Cappadocian and Peter Barsymes, who managed to collect taxes more efficiently than any before, thereby funding Justinian's wars; and finally, his prodigiously talented generals, Belisarius and Narses.