Add scanner init method.