Changed logFile String to File object.