Added checkLogFileExists and checkLogFileContents