New Script for APMs