Add some code to debug script.