Refactors animation length syncing.