Standardizing the sequences and add the template.