Simplify scanner loop.