Adjusted example to handle adjusting the pool.