Add check for pool size