1. If you think your scripts are starting to get stuck somewhere, since it's a private script, you can add longer sleeps to fit your needs. That's where trial and error comes into play for making a possibly flawless scripts.
2. Especially for mule trades, it's advisable to make use of conditional sleeps.
3. If you lag is an issue, just add a longer sleep time, i don't see any harm to it. It's better than a stucked script.