Added function to remove data series