Added delays to make sure do do not flood out event queue.