+ Added logic to write prediction info to log file.