Modified operators for writing to file.