Updated LineShellings code.