Clean the code; Termination check;