Added the clause for termination.