Copy code from `Graphics_Sleep_Functions`.

Does the program segfault anyway in Travis ???