Use normal animation frame function