Writing filters that change output depending on peer