Made it work with large log files