Has the high hat filter, and the beginning of the plotting function