Added interleave-all function