Fixed wrapper, portable sleep
Timeout specified in ms