Use array instead of set.