Added hierarchical tree category loading code.