[WIP] Take into account different possible intervals instead of just one