Code refactoring, added callback to earthquakes list