Added support for unlimited lights