Corrected the pooled reference function