Replaced ob_end_clean() with ob_clean() so it is now properly using output buffering with appropriate performance.

More...