Reduced scope from _pe.document to _pe.main.