Trimmed down some code. Shortened getLogFiles.