Adding back in debug script. but commented out, for later