Moving to use global_intermediate hook rather than pre_output_page. Working on alerts.php page to handle new system for marking alerts read.