Added requestAnimationFrame