Move script from sh to autoload