Added dialog and command line arguments.