Exposed the initPages method in the header file.