Added support to specify output and input paths