Commit before adding pages