Add generator type reader function.