Added final animation code.