Adds segment check