Add option to join output segments