Added support for anonymous functions