Removed time.sleep from iohandler.