Added _animate function