Tool scanner working for the first line only