Added functionality to the 'cancelled' flag.