Replace lambda by ordinary protected method.
Merge branch 'master' into patch-1