Debug script for instances