Init with lambdas