[beta] Replaces anonynoums functions with named ones
Merge pull request #3919 from twokul/stack-trace-fixes

[beta] Replaces anonynoums functions with named ones