Institutions with a Hierarchy of Authorities in Distributed Dynamic Environments