Apply pattern to dictionary based scans as well