After the death of his wife, shortly after 1124, Emperor John II Komnenos built another church to the north of the first dedicated to the Theotokos Eleousa ("the merciful Mother of God"). This church was open to the population and served by a lay clergy. Finally (the terminus ante quem is 1136) a south courtyard and an exonarthex were added to the complex, and the two shrines were connected with a chapel dedicated to Saint Michael, which became the imperial mausoleum ("heroon") of the Komnenos and Palaiologos dynasties. Besides many Byzantine dignitaries, Emperor John II and his wife Eirene, Empress Bertha of Sulzbach (also known as Eirene, and wife of Manuel I Komnenos), and Emperor John V Palaiologos were buried here.