Add stopping method in the controller.