Updated line creation process