Add support for creating new segments