Updated animator code.