Respect limits and remove duplicates