Added condition for reducing false positives in expansion case.