Contig generation problem