Eliminated global variable for outputHeader.