Add lock to cancel