added pauses after flashes, still seems to not work right