Added requestAnimationFrame update