Comment out old debug code causing crash
Simpler generic script