Refactoring: use enum Pool instead of bool wan