Added stopAnimation functions.