Added AnimationFrame support.