Pass down total_value to algorithms in the command-line tool.