Added ability to customize output file.