Removed checkProximity.