A functional central limit theorem for regenerative chains 1