Simplified lambda function.