Added table filter function.