Change setTimeout to 0ms