Revert "Use lambda instead of named function"

This reverts commit 9818cb49dec11852d7e07a901c32e65e4001e48f.
Update link to changes in readme to point to read the docs