Modified the Dialog classes.