Made max idle connections configurable