Added dynamic size for contigs