Add local pool and local pool2 functions, and passed the test.