Add callback parameter to sleep and tempChangeTimeScale