Added animation code.