Make pool size configurable