Switch off lights when not necessary