Use lambda function.