Added lining writing after lining aquisition