Is type filter necessary? Also, it's not necessary to check created_at, because if created_at is greater than a particular time, then updated_at must also be greater than that time.