Changed the value returned by the get_descendants function to a set instead of a list