Modified logging process. (CSV vs. TXT)