Added animation parameter to allow disabling animations.