Started rewriting animation code.