Add function for pools