This can be fatal error as you allow `$delay` to be `0`.