Added functional to configure directory for result files. Added functional to show error message if need.