Added is_set function.