Updated method of getting page size.