Metadata expects duration in seconds. Minor clean-up.