Updated code for green light.