Refactored lineSet into lineState