Dispersion calculation added