Added format attributes to print_to_buffer and send_to_network