Made coloring more robust for overlapping times