Working light turning code