Simplify setTimeout implementation