Arrumado delay do main loop.