Implemented setting custom headers, storing directly to disk.