Small updates to SD script