Change output file format. Add docstring.