Adding separate results logging to output file. (WIP).