I think there is a bug with repeated scanning...but other than that I
think this actually works now. Took forever.