Added proximity detection to nodes