added ability to record durations