Made type task collection bottomup.