Change how to stop commands method calling loop to more understanable way