Increased page_size
Moved update flag to ensure that we do not call this function several times.