Renamed length to duration for clarity