Make eachfn pluggable