Added d3 functionality