Updated script aml external