Added animation code from Jin