Use set rather than list to hold values.