Added filter implementation.