Now calculates lensing weight function