Standalonify for spm.