 Those who had up to this time joined the Reformation obtained religious liberty until the meeting of a council and in a separate compact all proceedings in matters of religion pending before the imperial chamber court were temporarily paused.In 1538, in the Treaty of Nagyvárad, Ferdinand induced the childless Zápolya to name him as his successor.But in 1540, just before his death, Zápolya had a son, John II Sigismund, who was promptly elected King by the Diet.