First version of SetupAMI script.