Why this sleep with a magic number? Is there anyway to poll if the next command will work without a sleep?