Fixed redirect output formatting