Remove multiply defined 'animated' variable