Support for loading in segments

Including text example.