Added updating of light values on change