Add support for anonymous function invocations