changed back to the old sleep mechanism since the new stuff made the sleep demo go wrong. Ping @airbaggins