New light localization code