Added run from command line functionality