Changed reader factory to a better factory.