Updated SPM first level script