Clean up debug printing further
Move AutoLoadFunctions to it's proper place