Implemented hour ranges in outputDDM, implemented handling of multiple cases