WIP: Semi working version of previous scan comparison