Added stoping animation functionality