Add isTerminated