Removed redundant lambdas.