Added method to end time of an event.