Added logging to a file