Fixed issue with ordering of elements in connection pattern. Needed to
be from inner to outer.