Implementing include_segments