Added hack to trim number of alignments in extraction.