Added option to enable/disable dialog display.