Provide access to the current PageViewport from the outside. Added a few useful debug log statements.