Added in code for scattering vectors