Handle multiple segments