Added backward compatibility for old segment.