Added method for stopping process