Added hierarchical model