Added support for lambdas with captures