Revert "SD-script"

This reverts commit dcc1a144ded9a2e0237f83caf3787c5fd1471dc3.
Revert "Revert "SD-script""

This reverts commit 50a2ae3597edb1aa93ce44ba645a696eb3f13505.