Rewrite in more modern style. Still failing in full test run
for mysterious reasons.
Reenable FunctionAction for settings function.