Update scanner, add integer loop