Apply lambdas where possible