Support nested function
Merge pull request #119 from bolasblack/support-nested-function

Support nested function