Improved log file manipulation.