getBuildingData() Function implemented.