Added update function for animation pourpose