Added construction for scanner implementation.