Implemented Jeremy's method of animatino