Changed connection objects to array objects