Removed the max_distance parameter, for when you're ready.