Added external light suppression code