Sorted out autoloading for the script.