Updated LineScanner class.