Added a cancel operation method