Added RAW LOG WRITING