implemented '-f' option to define a custom output.