Moved blink functions to be called only when needed