$num_terms = 1 no longer needed, reverting to 0