implemented wasStopped flag