Added file writes to filelogger.