             var frames: [String: CGRect]?
             if areCollisions {
                 // Register possible collisions as constraints
-                for (frame1, frameList) in possibleFrameCollisions {
+                for (frame1, frameList) in frameCollisions {
                     let index1 = frameIndices[frame1]!
                     for frame2 in frameList {
                         let index2 = frameIndices[frame2]!

        })

        for value in domain {
            if Date.timeIntervalSinceReferenceDate-startTime > 5.0 || cancelled {
                return true
            }
            let activeFrame = variables[depth]
            activeFrame.applyValue(value)
            var noFails = true

                        newWidth = newWidth < minWidth ? newWidth : minWidth
                        for frame in sweepState {
                            frame.width = newWidth < frame.width ? newWidth : frame.width
                            if frameCollisions[point.frame] != nil { frameCollisions[point.frame]!.append(frame) }
                            else { frameCollisions[point.frame] = [frame] }
                            if frameCollisions[frame] != nil { frameCollisions[frame]!.append(point.frame) }
                            else { frameCollisions[frame] = [point.frame] }
                        }
                        point.frame.width = newWidth
                    }
