Useful method for lambdas
Removed loggin stuff