Create a real function/method instead of using lambda. If anything is failing, at least we'll have a readable backtrace :)