Refer $param{terms} for counting at the updater. bugid:109620
Embed "upgrade_functions" into plugin definition. bugid:108286