option for specifying output directory is added.