Improved proximity search example