[IMP] sps_lead: Improved the code.