Minor: use method as lambda
Slightly more idiomatic code