The First Minister took charge of the SNP Government during a period that was "really, really difficult" for the party.