[IMP] sps_crm: Improved the code acording to requirements.