Fix location of function for LED flashing