Modified scripts to run APM without SD