Add ability to store features to segment persistence code