Move variable out of ob_start