Rearranged and renamed the debug script to load globally.