Changed used_segments structure