Russian President Vladimir Putin has signed a law granting former Russian president’s expanded immunity from prosecution and allowing them to become senators for life in the upper house of Parliament once they leave the Kremlin.

“Bill gives former presidents and their families’ immunity from prosecution for crimes committed during their lifetime.”

The new law follows sweeping reforms of Russia’s political system initiated by Putin this year. Among other things, it allows him to run for two more six-year terms in the Kremlin if he chooses.

The legislation was part of constitutional amendments that were approved this summer in a nationwide vote that allowed Putin to remain president until 2036. He would otherwise have had to step down in 2024.

The reforms are being parsed for clues as to what Putin, 68, may do at the end of his current term, which is his second consecutive term and his fourth overall.

Former presidents were already entitled to immunity from prosecution for crimes committed while in office, but the new law grants them lifelong immunity and says they cannot be arrested, searched, questioned or prosecuted.

The new legislation also makes it harder to revoke a former president’s immunity.