Added support for specifying page size.