Added capability of checking for termination and corrected issue with
dna evaluation.