Added helper method NextAnimation().