Added a cancel request method