Implemented filter mechanism.