Please refer to the ticket - Differentiating Scanned New code vs Old code
As suggested I am starting new thread