It then sets two custom variables, one for 20 minutes before the alarm (turn on the lamp) and one for 10 minutes after (turn it off). [Gbola] then built a second task to actually control the lamp.