Filter out bad data