Scanning works. Might benefit from multithread. Need to have it save to a file now.