Moving the data to the pages where it belongs