Trying to avoid the closure allocation.