Implemented type filter.