Added ability to save headers to file