Improved the function invocation.