Cleaned method connectToNear to recreate