Improved the lighting engine