Proximity logic implemented.