Removed semi_index dependency.