Added runInteractive function.