Added some import data filtering to avoid errors.