Implemented writing of new page headers