djsopnet: Segment functions WIP