Added filter for plot data