Added attribute to specify pool size.