Rework of <durationinseconds> recognition.

Was not working as expected.