Adding a log file and a function to read it