Support for nested functions added.