Added loop for directional lights