Fixed bug where not all output information would be printed.