Please use Rex.sleep as you were already doing.