Adding current version of scattering code.