Logfile, Outfile, some calculations