Smarter lensing