Added command line option for output folder.