Added return type annotations to lambdas.