Definitely not my favorite part of this PR. If anyone has any ideas how to get around this (or even why it works with the sleep, not doesn't work without it), I'm all ears.