Use config instead of globals for OutputPage