Renamed function to 'print_queue'