Final scanner implementation.