Modifying sph script