Corrected some output mistakes.