Add spm support.