Add missing parameters to invokeTaskFunction2 calls.