Get rid of lambda for older compilers