Some changes to change on/off state of blinking