Changed driver to d within .each