Filter duplicate statements.