Properly use the pool variable