added function GetLinesToSkip