Speed improvements in SigScan alogirthm

Debugging for more..