Fixed bug from using sets by using lists.