Implemented cancel()