Fixed print_output