Use a method to change the CreatePage function.