Add optional security filter