Recreate slave script

Automate or die trying...