Cleaned up printOutput()