Added createPoolWithMaxReuseCount