Improved contig space manipulation