Do not sleep function has never worked. I had to use a third party app called Sleepless. After I updated to OS Catalina Sleepless was not supported so it is no longer useful.