How does cancellation work?