Added cancel functionality to operations