Prime Minister Nawaz Sharif was given a two-month reprieve on Thursday as Pakistan’s Supreme Court ordered further investigations into corruption allegations against him, saying there wasn’t enough evidence to order his removal.

Sharif had a narrow escape after a split decision by the five-member bench of the Supreme Court, with two judges recommending that the premier be told to step down.

The bench ordered the setting up of a joint investigation team (JIT) within a week to probe allegations linked to the Panama Papers leaks. Three judges ruled in favour of the JIT, which was directed to complete its probe in two months.

The Supreme Court also ordered Sharif, 67, and his two sons, Hasan and Hussain, to appear before the JIT.