Make sure delay happens on the current thread instead of main