Made generic for N fasta files