Add luminosity check to main