Changed 1 line to check for null before calling int(search_radius)