Moved line references initialization to constructor