Renamed some line* variables to chain or segment