Revert "Try to use lambdas."

This reverts commit cdb760ae51775c00ae2ea2d98528d85b7aaab7f8.