Adding request animation frame.