Add print_instances_info function