Added method to retrieve uri segments