Added activity hierarchy.