Updated cancell function