THis does not seem right.

maxSize = default_size ? 

Also think about user configuration.