Added new methods to trip.m