Linescan code added