Updated editing script to match sequences.