Updated Sleep function.