Some changes in `lightdata.py`.