#27: Improve the script to get instances.