Modified code per meeting. Still determining how to best test all permutations.