Add ob_start() and ob_flush() to solve header warnings