Don't create lambdas if it's not necessary