Changed ostringstream to ostream for new print_params and added the old
version of print_params for backwards compatibility.