Add a radius search and fix a few bugs that showed up.