Finish basic sph algorithm. Done.