Add model comparison function.