As a result of the election, Mas, on behalf of CiU, had to engage in talks for a stable government, this time with Oriol Junqueras (ERC), who refused to enter a coalition government with Mas but stayed as Leader of the Opposition in the Parliament of Catalonia; however, ERC agreed general support to the CiU government and CiU agreed to coordinate with ERC the goals of the legislature; this was termed by the signataries as the "Agreement for Freedom". Artur Mas was invested for the second time President of Catalonia on 21 December 2012 and 24 December he took up office at the Palace of the Government of Catalonia.