Add support for closure/anonymous functions