Add scan code in loop commented (to big in size)