Rebase sg

My eyeballs are  about to pop... Let's review all of this time.sleep usage here, as its usage might differ drastically between different machines/VMs