Finish segment implementation