Rewrite tool using minitask (eachFn todo)