Use SPM when optimizing.