Pass the pool references as pointers