Changed output of earthquake function to a dictionary.