Adding alternate attenuate fluxes function