Add algorithm to find attached neighbors