[IMP]Improved code to set proper contact for lead.