Change some define and slow down scan

Change some define and slow down scan