Added chromatic dispersion calculation