Ready to implement termination check of algorithm.