[IMP] Improved code in sps_crm.