Last bit of tidying, break out of loop(s) once we've found a connector that'll work.