Added code from crisisdata repository