Made record durations configurable