Add missing function priv functions.

Not sure how I omitted them last week, but they were in the upgrade script,
so easy enough to copoy over.