Rewrite the delay-by primitive so it's easier to understand.

Also, add comments that attempt to explain how it's intended to work.