Algorithm almost finished - Overlapping problems