d3, Vivek | Added logic to support clinet to be able to distinguish between