Added pool as local var.