Added a way to cancel chunk generation