Made MaxPoolSize configurable

I have made pool size part of Client structure so that it can be modified by client.