Change to sph script