Add dependency GC check to another timer. Minor update on topological
sorting.