Modified ConnectionFilter to accept an array of connections