Replace bind with lambda.