Added Filter Envelope logic