Implementation of Hierarchical AdaPtive Analysis (HAP)