Added support for named functions
added support for named functions