Added functions for analysis of goodness of results.