Backend worker for autotoc