Used queue in exit