Add function for obtaining alignments.