Updated the code for termination