Added out of while loop stop status