Removing setTimeout for delay=0