Simpler looping through connections with .nonzero