Adding stuff to support luminosity sensor