Don't need an extra parameter, we can use a lambda instead.