Added the filter to the flux calculations