Added createPage method.