Implemented filter pattern.