Added version that theoretically has working delay.