Added JoinRanges which only works for Discreet periods