Checking if linearrangement is done before adding new lines.