Modified when light curves are created