Added support for selecting output path