Added function filter.