Added method PrepareLine into Model.