Make pool size an attribute