Implements data filter