Connecting the ends of materials