Control of illumination source