## 5 Conclusions and Future Work  
This work presented a layered reference software architecture for developing smart mobile distributed systems (SMDSs) to manage emergency cases such as earthquakes at GHEIs. Our software architecture was designed based on the functional and non-functional requirements derived from each prevention, relief, and recovery subprogram defined in the Mexican National Civil Protection Program, as well as the analysis of the services described in the related works. The layers that integrate our software architecture are plugin, sensorization, storage, information gathering, communication, reports, emergency actions, and presentation. In our case, we considered two tiers: mobile and administrator. The tiers complement layers; services are modeled in vertical abstract layers, while the tiers deal with the functionality of a specific layer in the nodes. Each layer is independent since it performs specific services. The mobile tier was developed on devices with limited processing and storage features. On the other hand, the manager tier was designed to run on devices with higher processing and storage capacity. Therefore, the workload is higher in the admin than in the mobile tier. The evaluation of our architecture was carried out based on four approaches. The first approach assesses the requirements for correctness and coverage. Based on the results obtained, it is concluded that the proposed software architecture in this work addresses all the desirable requirements for the development of SMDSs, which is focused on managing the activities of people and members of the brigades in case of earthquakes at GHEIs. The second evaluation approach assessed the product quality resulting from our software architecture regarding functional suitability. The results of the tests that were carried out considering simulated scenarios show that the developed system based on our architecture meets the quality attributes of functional suitability. The third approach assesses the usability of a developed prototype based on the proposed reference software architecture in this work applying a laboratory study. The usability results from the users' perspective showed satisfactory usability. The fourth approach assessed our software architecture by applying the RAModel model. In this case, the results show that our software architecture proposal considers all the main elements described by the RAModel for reference architectures. Additionally, we compared and verified the desirable requirements addressed in related works with those covered by our software architecture. The results show that our work is characterized by modeling all the desirable requirements for managing and streamlining the activities of the victims and evacuation, search, and rescue brigades before, during, and after an earthquake. Therefore, our reference software architecture is characterized by providing suitable architectural support for developing SMDSs oriented to managing ECs at GHEIs with the required requirements and quality attributes. From our point of view, the most important advantages of our reference software architecture are as follows: (a) defining the basic technical guidelines that an SMDS oriented to managing an EC at a GHEI must possess, (b) streamlining the overall development by providing a solid and standardized framework to developers, and (c) contributing to meeting the required requirements arising from the specific domain of SMDSs oriented to managing ECs at GHEIs. As future work, we will consider implementing other classification algorithms within the indoor location service to evaluate and improve the accuracy of the location of people and the conduct of a usability evaluation of the system developed based on the proposed architecture with the participation of at least 20 users (five participants for each type of user) in official earthquake drills. **Author Contributions:** Conceptualization, L.Y.C.R., E.L.D. and Y.H.V. ; methodology, L.Y.C.R., E.L.D., Y.H.V. and S.D.I. ; software, L.Y.C.R., E.L.D., Y.H.V. and S.D.I.