Pool refactoring.