Updated the line creation process