Checking 'index in *list*' takes forever. Changed to set for O(1) access times.