SPM: Create SPCI auxiliary function