Added more examples to md file and refactored to be able to cancel correctly.