Fixed the formatting, added a extractLineageData function.