Made the stop operation work