Cancel function done.