Added some basic functionality to getHistory and addTrips