Updated lighting code for factory.