Added blinking thread and reverse pulse.