Adding support for NewPage