See if queueing scripts helps and check variables when dialog loads