Added ChainShapes init with loop and chain