Overlapping detection working