More modifications for  pgpool functions